#include "SList.h"

void TestSLT()
{
	SLNode* plist = NULL;
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPrint(plist);

	SLNode* pos = SLTFind(plist, 3);
	SLTInsert(&plist, pos, 203);
	SLTPrint(plist);

	SLTInsertAfter(pos, 4);
	SLTPrint(plist);

	SLTEraseAfter(pos);
	SLTPrint(plist);

	pos = SLTFind(plist, 203);
	SLTErase(&plist, pos);
	SLTPrint(plist);
	
	SLTDestroy(&plist);
}

int main()
{
	TestSLT();

	return 0;
}